
const express = require('express');
const router = express.Router()

// middleware that is specific to this router
router.use(function timeLog (req, res, next) {
  console.log('Time: ', Date.now())
  next()
})
// define the home page route
router.get('/', function (req, res) {
  res.render('login', {})
})

router.post('/doLogin', function (req, res) {
  res.send('执行提交-' + req.body.username)
})

module.exports = router
